
import '../utils/Settings.dart';
import '../utils/dio/DioMethod.dart';
import '../utils/dio/DioUtil.dart';

class AlarmApi{

  ///分页查询 温湿度报警
  static const alarmLogListUrl = "${Settings.appServer}/ThEqAlarmLogController/page";

  ///温湿度报警处理
  static const thAlramHandleUrl = "${Settings.appServer}/ThEqAlarmLogController/alramHandle";

  ///查询趋势报警日志
  static const trendAlarmLogListUrl = "${Settings.appServer}/ThEqAlarmTrendLogController/page";

  ///趋势报警处理
  static const trendAlramHandleUrl = "${Settings.appServer}/ThEqAlarmTrendLogController/alramHandle";

  ///查询烟感报警日志
  static const smokeAlarmLogListUrl = "${Settings.appServer}/ThEqAlarmSmokeLogController/page";


  ///烟感报警处理
  static const smokeAlarmHandleUrl = "${Settings.appServer}/ThEqAlarmSmokeLogController/alramHandle";

  ///温湿度报警处理
  static dynamic thAlramHandle (formData)async{
    return await DioUtil.getInstance().request(thAlramHandleUrl,method: DioMethod.post,data: formData);
  }


  ///趋势报警处理
  static dynamic trendAlramHandle (formData)async{
    return await DioUtil.getInstance().request(trendAlramHandleUrl,method: DioMethod.post,data: formData);
  }

  ///烟感报警处理
  static dynamic smokeAlramHandle (formData)async{
    return await DioUtil.getInstance().request(smokeAlarmHandleUrl,method: DioMethod.post,data: formData);
  }

}